import http from "@/utils/request";
import config from "@/config/config";

// 上传照片
export const imageApi = `${config.api}upload/files/process_images`

export async function auth(data: any) {
    return http.post("auth/wechat", data);
}

export async function getSettings(): Promise<API.Result> {
    return http.get("settings");
}


export async function getUserInfo(): Promise<API.Result> {
    return http.get("auth/current_user");
}

export async function updateUserPhone(code: string): Promise<API.Result> {
    return http.put(`auth/update_user_phone?code=${code}`);
}